﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TruongVu.Business;

namespace TruongVuWebsite
{
    public partial class NewsDetail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = Int32.Parse(Request.QueryString["newsid"]);
            if (id == null)
            {
                return;
            }

            News news = new News();

            if (!IsPostBack)
            {
                dlNewsDetail.DataSource = news.GetNewbyIDList(id);
                dlNewsDetail.DataBind();
            }
        }
    }
}